<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js</title>
	<script type="text/javascript">
		// alert(888)
		// 警告框
		alert("学并思");
		//往文档写东西
		document.write("<h1>这个是一个标题</h1>");
		//对话框
		num = prompt("你真的要去吗",'要');

		alert(num);
		//确认框
		res = confirm("你确定要删除");

		alert(res);
		//控制台日志
		console.log('我要记录一点小小的信息');

		num = 100;


	</script>
	<script type="text/javascript" src="./main.js"></script>
</head>
<body>
	<p onclick="alert(777)">学并思</p>
</body>
</html>
<script type="text/javascript">
	

	alert(num)
</script>